import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
// 引入 Vuex 中的 store 和注册
import store from './store'
import API from './api/axios'
import echarts from 'echarts'
import 'echarts-liquidfill'
import './plugins/elementUI'
import scroll from 'vue-seamless-scroll'
import axios from 'axios'
import '@/mock/user.js'  // 需要引入，否则会报404错误

Vue.prototype.$axios = axios
Vue.use(scroll)

Vue.config.productionTip = false
Vue.prototype.$API = API
// 优化建议：按需引入 echarts
Vue.prototype.$echarts = echarts

new Vue({
  render: h => h(App),
  router,
  // 注册 store
  store,
}).$mount('#app')
